package com.geek.factory.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 库存盘点任务实体类
 * </p>
 *
 * @author author
 * @since 2025-06-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("stock_check_task")
@ApiModel(value="库存盘点任务对象", description="库存盘点任务的详细信息")
public class StockCheckTask implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 任务状态：待开始 */
    public static final String STATUS_ASSIGNED = "A";
    /** 任务状态：进行中 */
    public static final String STATUS_IN_PROGRESS = "P";
    /** 任务状态：已完成 */
    public static final String STATUS_COMPLETED = "C";

    @TableId(value = "task_id", type = IdType.AUTO)
    @ApiModelProperty(value = "任务ID")
    private Integer taskId;

    @ApiModelProperty(value = "盘点单ID")
    private Integer checkId;

    @ApiModelProperty(value = "盘点人员")
    private String assignee;

    @ApiModelProperty(value = "负责区域")
    private String assignedArea;

    @ApiModelProperty(value = "分配物品数量")
    private Integer assignedItems;

    @ApiModelProperty(value = "已完成数量")
    private Integer completedItems;

    @ApiModelProperty(value = "任务状态")
    private String status;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdTime;
}